export default {
  computed: {
    border() {
      const { style, config } = this;
      return {
        borderWidth: style.borderWidth + 'px',
        borderStyle: config.bordered ? style.borderStyle : 'none',
        borderColor: style.borderColor,
        borderRadius: config.bordered ? (style.borderRadius * Math.min(style.width, style.height)) / 200 + 'px' : 0
      };
    }
  }
};
